<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>基本选择器事咧</title>
    <script src="js/jquery-3.6.0.min.js" type="text/javascript"></script>
</head>
<body>
    <div id="idDiv">DOM的对象与JQuery对象的相互转化</div>
    <div class="classDiv">jquery对象不能直接使用MOD对象的方法</div>
    <div class="classDiv">但可以通过将jquery对象转换成DOM对象后再调用其它方法</div>
    <div class="classSpan">基本选择器是jquery中最常见用的选择器</div>
    <script type="text/javascript">
       $(function(e){
           $("idDiv").css("color","blue");
           $(".classDiv").css("background-color","#dddddd");
           $("span").css("brckground-color","gray").css("color","white");
           $("*").css("font-size","20px");
           $("#idDiv,classspan").css("font-style","italic");
       })
    </script>
</body>
</html>